import request from '@/utils/request'

// 查询四级联考体能测评列表
export function listPhysical(query) {
  return request({
    url: '/system/physical/list',
    method: 'get',
    params: query
  })
}

// 查询四级联考体能测评详细
export function getPhysical(id) {
  return request({
    url: '/system/physical/' + id,
    method: 'get'
  })
}

// 新增四级联考体能测评
export function addPhysical(data) {
  return request({
    url: '/system/physical',
    method: 'post',
    data: data
  })
}

// 修改四级联考体能测评
export function updatePhysical(data) {
  return request({
    url: '/system/physical',
    method: 'put',
    data: data
  })
}

// 删除四级联考体能测评
export function delPhysical(id) {
  return request({
    url: '/system/physical/' + id,
    method: 'delete'
  })
}

// 导出四级联考体能测评
export function exportPhysicalManagement(query) {
  return request({
    url: '/system/physical/export',
    method: 'post',
    params: query
  })
}

// 获取四级联考体能测评导入模板
export function importPhysicalTemplate() {
  return request({
    url: '/system/physical/importTemplate',
    method: 'get'
  })
}

// 导入四级联考体能测评数据
export function importPhysicalData(data) {
  return request({
    url: '/system/physical/importData',
    method: 'post',
    data: data
  })
}

// 下载模板
export function importTemplate() {
  return request({
    url: '/system/physical/importTemplate',
    method: 'get'
  })
}

// 生成递补体能测试名单
export function generateDbPhysicalList() {
  return request({
    url: '/system/physical/generateDbPhysicalList',
    method: 'post'
  })
}
